<%--
  Created by IntelliJ IDEA.
  User: 62585
  Date: 2021/1/31
  Time: 18:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>上传测试</title>
    <base href="http://localhost:8080/download/"/>
</head>
<body>
<%--上传包含文件的form，需要对enctype特殊设置，设置为“multipart/form-data”--%>
<form action="receiveServlet" method="post" enctype="multipart/form-data">
    <%--    input类型，选择file--%>
    <label for="name">名字
        <input type="text" name="name" id="name"/>
    </label><br>
    <label for="photo">上传照片
        <input type="file" name="photo" id="photo">
    </label><br>
    <input type="submit" value="上传">
</form>

</body>
</html>
